import request from "../utils/request";

export const getCategoryAPI = () => {
  return request({
    method: "GET",
    url: "/category",
  });
};

export const addCategoryAPI = (data) => {
  return request({
    method: "POST",
    url: "/category",
    data: data,
  });
};
